//
//  VRLiveRoomViewController.swift
//  VoiceRoom
//
//  Created by Rui on 2024/3/30.
//

import UIKit

class VRLiveRoomViewController: VRBaseViewController {

    private let bgImageView = c_make_ex(UIImageView.self)
        .mode(.scaleAspectFill).end()
    private var topView = VRLiveRoomTopView()
    private var bottomView = VRLiveRoomBottomView()
    var dataModel: InfoUtil.room?
    
    init() {
        super.init(nibName: nil, bundle: nil)
        modalPresentationStyle = .fullScreen
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

        view.subviews{
            bgImageView
            topView
            bottomView
        }
        
        bgImageView.fillContainer()
        topView.leading(0).trailing(0).top(.statusHeight).height(44)
        bottomView.leading(0).trailing(0).bottom(0).height(78)
        
        topView.closeBlock = {
            self.dismiss(animated: true)
        }
    }


}
